01Layer 2 — Ethernet II frame
The analysis starts with the first 14 bytes: the physical transport envelope.
Destination MAC6 bytes
Source MAC6 bytes
EtherType2 bytes
Payload (data)46 – 1500 bytes
CRC4 bytes
| Field | Value (hex) | Content |
|---|---|---|
| EtherType | 08 00 | An IPv4 packet |
| EtherType | 08 06 | An ARP packet |
| EtherType | 86 DD | An IPv6 packet |
02ARP packet (layer 2.5)
ARP maps IP addresses to MAC addresses. It is encapsulated directly in the Ethernet frame.
Hardware type2 B
Protocol type2 B
HLen / PLen2 B
Opcode2 B
Sender MAC6 B
Sender IP4 B
Target MAC6 B
Target IP4 B
Opcode 00 01
ARP request ("Who has…?")
Opcode 00 02
ARP reply ("I have…")
03Layer 3 — IPv4 packet
Located right after the Ethernet header when the EtherType is 08 00. The header is 20 bytes without options.
Ver / IHL1 B
ToS1 B
Total length2 B
Ident. / Flags / Frag.4 B
TTL1 B
Protocol1 B
Checksum2 B
Source IP4 B
Dest. IP4 B
| Protocol field (hex) | Protocol | Typical use |
|---|---|---|
01 | ICMP | Ping, error messages |
06 | TCP | Web, file transfer (reliable) |
11 | UDP | Streaming, DNS (fast, unreliable) |
04Layer 4 — Transport protocols
A. ICMP (ping)
Type1 B
Code1 B
Checksum2 B
Datavariable
Ping analysis: type
08 = Echo Request (ping query) · type 00 = Echo Reply (ping response)B. TCP (segment)
Source port2 B
Dest. port2 B
Sequence number4 B
Ack. number4 B
Offset / Flags2 B
Window · Checksum · Urgent6 B
Key flags: SYN (connect), ACK (acknowledge), FIN (end), RST (reset).
C. UDP (datagram)
Source port2 B
Dest. port2 B
Length2 B
Checksum2 B
Common ports
| Port (dec) | Hex | Service |
|---|---|---|
53 | 00 35 | DNS |
80 | 00 50 | HTTP |
443 | 01 BB | HTTPS |